package com.fifth.apartment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fifth.apartment.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    @Select("select * from menu me,role_menu rm where me.id = rm.menu_id and rm.role_id = #{id}")
    Set<Menu> queryMenusById(Integer id);
}
